home *** CD-ROM | disk | FTP | other *** search
/ Aminet 35 / Aminet 35 (2000)(Schatztruhe)[!][Feb 2000].iso / Aminet / gfx / misc / gnuplot-src.lha / gnuplot-3.7.1src / gnuplot-3.7.1.lha / gnuplot-3.7.1 / m4 / msdos.m4 next >
Encoding:
Text File  |  1999-08-19  |  971 b   |  36 lines

  1. ## ------------------------------- ##
  2. ## Check for MS-DOS/djgpp.         ##
  3. ## From Lars Hecking and           ##
  4. ## Hans-Bernhard Broeker           ##
  5. ## ------------------------------- ##
  6.  
  7. # serial 1
  8.  
  9. AC_DEFUN(GP_MSDOS,
  10. [AC_MSG_CHECKING(for MS-DOS/djgpp/libGRX)
  11. AC_EGREP_CPP(yes,
  12. [#if __DJGPP__ && __DJGPP__ == 2
  13.   yes
  14. #endif
  15. ],AC_MSG_RESULT(yes)
  16.   LIBS="-lpc $LIBS"
  17.   AC_DEFINE(MSDOS, 1,
  18.             [ Define if this is an MSDOS system. ])
  19.   AC_DEFINE(DOS32, 1,
  20.             [ Define if this system uses a 32-bit DOS extender (djgpp/emx). ])
  21.   with_linux_vga=no
  22.   AC_CHECK_LIB(grx20,GrLine,dnl
  23.     LIBS="-lgrx20 $LIBS"
  24.     CFLAGS="$CFLAGS -fno-inline-functions"
  25.     AC_DEFINE(DJSVGA, 1,
  26.               [ Define if you want to use libgrx20 with MSDOS/djgpp. ])
  27.     AC_CHECK_LIB(grx20,GrCustomLine,dnl
  28.       AC_DEFINE(GRX21, 1,
  29.                 [ Define if you want to use a newer version of libgrx under MSDOS/djgpp. ])dnl
  30.     )dnl
  31.   ),dnl
  32.   AC_MSG_RESULT(no)
  33.   )dnl 
  34. ])
  35.  
  36.